//1.分页列表请求参数类型
export interface hospitalListParamType {
    hoscode?: string;
    hosname?: string;
    hostype?: string;
    provinceCode?: string;
    cityCode?: string;
    districtCode?: string;
    status?: 0|1;
}

//2.医院列表返回数据中content类型
export interface hospitalItemType {
    id: string;
    createTime: string;
    updateTime: string;
    isDeleted: number;
    param: {
        hostypeString: string;
        fullAddress: string;
    };
    hoscode: string;
    hosname: string;
    hostype: string;
    provinceCode: string;
    cityCode: string;
    districtCode: string;
    address: string;
    logoData: string,
    intro: string,
    route: string,
    status: number;
    bookingRule: BookingRuleType|null;
}
//定义content中bookingRule的类型
export interface BookingRuleType{
    cycle: number;
  releaseTime: string;
  stopTime: string;
  quitDay: number;
  quitTime: string;
  rule: string[];
}

//content类型
export type hospitalContetType = hospitalItemType[]

//医院列表返回数据类型
export interface hospitalRetrunType {
    content: hospitalContetType
    pageable: {
        sort: {
            sorted: boolean;
            unsorted: boolean;
            empty: boolean;
        };
        pageNumber: number;
        pageSize: number;
        offset: number;
        paged: boolean;
        unpaged: boolean;
    };
    totalElements: number;
    totalPages: number;
    last: boolean;
    first: boolean;
    sort: {
        sorted: boolean;
        unsorted: boolean;
        empty: boolean;
    };
    numberOfElements: number;
    size: number;
    number: number;
    empty: boolean;
}

//3.三级联动之获取省级信息返回值类型

export interface placeType {
    createTime: string
    dictCode: null
    hasChildren: boolean
    id: number
    isDeleted: number
    name: string
    param: {}
    parentId: number
    updateTime: string
    value: string
}
export type provinceType = placeType[]


//3.医院详情的返回值类型
export interface hospitalDetailReturnType {
    "bookingRule"?: BookingRuleType,
    "hospital"?: hospitalItemType
  }

